﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Furion.Application
{
    public class OrgInput
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        /// 负责人
        /// </summary>
        public int ManagerId { get; set; }


        /// <summary>
        /// 上级Id
        /// </summary>
        public int ParentId { get; set; }

    }

    public class OrgAddInput: OrgInput
    {

    }


    public class OrgEditInput : OrgInput
    {
        public int Id { get; set; }
    }

  

    public class OrgDeleteRangeInput
    {
        public int[] Ids { get; set; }
    }


    public class OrgTree
    {

        public int Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        /// 负责人
        /// </summary>
        public int ManagerId { get; set; }


        /// <summary>
        /// 上级Id
        /// </summary>
        public int ParentId { get; set; }


        public List<OrgTree> children { get; set; }
    }



}
